package org.jeecg.modules.iot.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
public class Meters {

    private Timestamp ts;

    private float current;

    private int voltage;

    private float phase;

    private String location;

    private int groupId;

    private String tableName;

    public Meters(Timestamp ts, float current, int voltage, float phase) {
        this.ts = ts;
        this.current = current;
        this.voltage = voltage;
        this.phase = phase;
    }

    public Meters(Timestamp ts, float current, int voltage, float phase, String location, int groupId) {
        this.ts = ts;
        this.current = current;
        this.voltage = voltage;
        this.phase = phase;
        this.location = location;
        this.groupId = groupId;
    }
}
